package com.xk.pojo;

public class Student {
    private String name;
    private int age;
    private String id;
    private int clazz;
    private String gender;

    public Student(String name, int age, String id, int clazz, String gender) {
        this.name = name;
        this.age = age;
        this.id = id;
        this.clazz = clazz;
        this.gender = gender;
    }

    // Getters and Setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getClazz() {
        return clazz;
    }

    public void setClazz(int clazz) {
        this.clazz = clazz;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        // 修改后的toString方法，返回正确的格式
        return name + "," + age + "," + id + "," + clazz + "," + gender;
    }
}